<!DOCTYPE html>
<html lang="en">
<head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>Document</title>
     <script>
          window.onload = function () {
               let oc = document.getElementById('canvas')
               let gd = oc.getContext('2d')

               gd.arc(400, 300, 120, 0, 360*Math.PI/180, false)
               gd.stroke()
               gd.strokeRect(100, 100, 100, 100)
               gd.fillStyle = '#ff6666'
               gd.fillRect(100, 230, 100, 100)
          }
     </script>
</head>
<body>
     <canvas id="canvas" width="800" height="600"></canvas>
</body>
</html>